package com.margo.project.dubbo.service;


import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import com.margo.project.base.model.ExternalUser;
import com.margo.project.base.service.ExternalUserService;

/**
 * org.apache.dubbo.common.bytecode.proxy
 * @author fangxingbang
 *
 */
@Service
public class MargoDubboConsumer {

	@DubboReference(interfaceClass=ExternalUserService.class)
	private ExternalUserService externalUserService;
	
	public ExternalUser getExternalUser() {
		return externalUserService.getExternalUser("fxb");
	}
	
	public ExternalUser getFlowExternalUser() {
		return externalUserService.getFlowExternalUser("margo");
	}
}
